<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/public/header.jsp"%>


<html>
	<head>
		<title>设置信息</title>
		<script type="text/javascript" src="/jxc/js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="/jxc/js/easyui/jquery.easyui.min.js"></script>
		<link rel="stylesheet" type="text/css" href="/jxc/js/easyui/themes/gray/easyui.css">
		<link rel="stylesheet" type="text/css" href="/jxc/js/easyui/themes/icon.css">
	</head>
	<script type="text/javascript">
		$(function(){
			openTab();
		});
		
		function closeWin(){
		    window.close();
		}
		
		function openTab(){
			var gdId = '';
			
			var arr=new Array("应收往来明细","销售订单","来往记录","合同资料","联系人","收货地址","发货明细","售后服务","产品策略");
			var arrUrl=new Array(
							 "customerFinanceIn.jsp?",
							 "saleManage.jsp?",
		                     "contactRecodeManage.jsp?",
		                     "contractManage.jsp?",
		                     "contactManage.jsp?",
		                     "customerAddressManage.jsp?",
		                     "productOutManage.jsp?",
		                     "serverManage.jsp?",
		                     "productStrategyManage.jsp?"
		                     );
			
			for(var i=0;i<arr.length;i++){
				if($("#tt").tabs('exists',arr[i])){
					$("#tt").tabs('select',arr[i]);
				}else{
					$('#tt').tabs('add',{  
	   				title:arr[i],
	   				closable:false,
	   				content:'<iframe frameborder="0" src="" style="width:100%;height:99%;" scrolling="auto"></iframe>'
					});  
				}
			}
			
			 $('#tt').tabs({  
   				onSelect:function(title,index){
				 	var tab = $(this).tabs('getTab',title);
				 	for(var i=0;i<arr.length;i++){
				 		if(index == i){
				 			tab.find('iframe').attr('src',arrUrl[index]);
				 		}
				 	}
		   		}
			});  
		}
		</script>
	<script type="text/javascript">
	</script>
	<body>
		<div id="customerManage" class="easyui-layout" data-options="fit:true">
		<div region="north"  style="height:35px;">
			<img src="/jxc/springViews/navigation/main_files/u10_normal.gif" height="30px"/>
			<span style="padding-bottom: 10px;color:orange;font-weight: bolder;font-size:20px;">工单详情(<span id='company'></span>)</span>
		 </div>
		 <div region="center" >
			<div id="tt" class="easyui-tabs"  data-options="fit:true">  
		 	</div>
   		</div>  
   	</div>
	</body>
</html>
